﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NewsMine.Storage
{
    public interface IKeyValueStore
    {
        void Open();
        void Close();   

        void Set(string key, object obj);
        void SetMultiple(Dictionary<string, object> keyValueDictionary);

        bool IsKeyExists(string key);

        object Get(string key);

        object Get(string key,bool forceLatest);

        List<object> Get(int startIndex, int length);

        int GetCount();

        void Replace(string key, object obj);

        void ReplaceMultiple(Dictionary<string, object> keyValueDictionary);

        void Delete(string key);
    }
}
